home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODF-Interest Archive / July 96 / Reduncdancy in Externalize() < prev    next >
Encoding:
Internet Message Format  |  1996-08-01  |  1.3 KB  |  [TEXT/ttxt]

  1. Subject:     Reduncdancy in Externalize()
  2. Sent:        7/22/96 12:11 AM
  3. Received:    7/22/96 10:48 AM
  4. From:        Arni McKinley, motion@nbn.com
  5. Reply-To:    ODF Interest, ODF-Interest@CILabs.ORG
  6. To:          OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
  7.  
  8. During externalization I have noticed that FW_CODPart makes the following
  9. calls in Externalize():
  10.     part->AddProperties(ev, partStorageUnit);
  11.  
  12.      // ----- Clean the content property -----
  13.     part->PrivCleanseContentProperty(ev, partStorageUnit);
  14.  
  15.      // ----- Externalize part specific data -----
  16.     part->ExternalizeContent(ev, partStorageUnit, NULL);
  17.  
  18. The first call adds the property  kODPropContents to the storage unit with
  19. value "GetPartKind(ev)".
  20.  
  21. The second then removes all values for that property, including the one
  22. just added.
  23.  
  24. The third call calls ClearPartStorage() before asking the part content to
  25. Externalize(). ClearPartStorage() focuses on the value "GetPartKind()" of
  26. kODPartContents, removes it and then adds it again.
  27.  
  28. This all seems a bit redundant. Just thought I'd bring it to your attention.
  29.  
  30. Arni
  31.  
  32. _______________________________________
  33. Arnold F. McKinley
  34. President
  35. MetaMind Software, Inc.
  36. 342 Lowell Ave.
  37. Mill Valley, CA 94941
  38. 415-381-8063
  39. FAX: 415-389-8969
  40. motion@nbn.com
  41. _______________________________________
  42.  
  43.  
  44.